package com.tiancheng.trade.payment.channel.umsmop.response;

import java.io.Serializable;

/**
 * Created by ZHANGWEI on 2016/12/2.
 */
public abstract class OpenApiResponse implements Serializable{
    private String errCode;
    private String errInfo;

    private String errMsg;

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getErrInfo() {
        return errInfo;
    }

    public void setErrInfo(String errInfo) {
        this.errInfo = errInfo;
    }

    public boolean isOK(){
        return this.getErrCode().equals("0000") || this.getErrCode().equals("SUCCESS");
    }
}
